<?php
/* @var $this RxController */
/* @var $model Rx */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'rx-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="column">
		<?php echo $form->labelEx($model,'pd_od'); ?>
		<?php echo $form->textField($model,'pd_od'); ?>
		<?php echo $form->error($model,'pd_od'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pd_os'); ?>
		<?php echo $form->textField($model,'pd_os'); ?>
		<?php echo $form->error($model,'pd_os'); ?>
	</div>

	<div class="column">
		<?php echo $form->labelEx($model,'pd'); ?>
		<?php echo $form->textField($model,'pd'); ?>
		<?php echo $form->error($model,'pd'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tint'); ?>
		<?php echo $form->textField($model,'tint',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'tint'); ?>
	</div>

	<div class="column">
		<?php echo $form->labelEx($model,'lens_material'); ?>
		<?php echo $form->textField($model,'lens_material',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'lens_material'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lens_design'); ?>
		<?php echo $form->textField($model,'lens_design',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'lens_design'); ?>
	</div>

	<div class="column">
		<?php echo $form->labelEx($model,'instruction'); ?>
		<?php echo $form->dropDownList($model,'instruction',array('N/A'=>'(Select Instructions)','Constant'=>'Constant Wear','near'=>'Near Only','far'=>'Far Only')); ?>
		<?php echo $form->error($model,'instruction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'segment_height'); ?>
		<?php echo $form->textField($model,'segment_height',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'segment_height'); ?>
	</div>

	<div class="column">
		<?php echo $form->labelEx($model,'personalinfo_id'); ?>
		<?php echo $form->dropDownList($model,'personalinfo_id', CHtml::listData(

		PersonalInformation::model() ->findAll(), 'id','fname', 'lname'), array('prompt' => 'Select Person')); ?>

               
		<?php echo $form->error($model,'personalinfo_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inventory_id'); ?>
		<?php echo $form->dropDownList($model,'inventory_id', CHtml::listData(

		Inventory::model() ->findAll(), 'id','id'), array('prompt' => 'Select Product')); ?>

              

		<?php echo $form->error($model,'inventory_id'); ?>
	</div>

	<div class="column">
		<?php echo $form->labelEx($model,'employee_id'); ?>
		<?php echo $form->dropDownList($model,'employee_id', CHtml::listData(

	Employee::model() ->findAll(), 'id','fname', 'lname'), array('prompt' => 'Select Employee')); 
		?>

               
		<?php echo $form->error($model,'employee_id'); ?>
	</div>
	<br>
	<br>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->